package mapro

import "server/lib/Imartini"

// import "log"
// import "net/http"

var base = "test/mapro"
var route = [][]interface{}{
	{"mapro/updateproduct", "GET", "", update_product},
	{"", "POST", "", post_update_product},
	{"", "GET", "/product/:id", select_product},
	{"", "POST", "/2", test2},
}

func init() {
	Imartini.M.AddIroute(base, route)
	// Imartini.M.AddRoute("GET", "/js/", http.FileServer(http.Dir("/var/www/js/")))
	// log.Println(Imartini.M.Iroute)
}
